class Address {
  String? area;
  String? city;
  String? detailed;
  int? id;
  String? isDefault;
  String? phone;
  String? province;
  String? realName;
  String? town;

  Address(
      {this.area,
        this.city,
        this.detailed,
        this.id,
        this.isDefault,
        this.phone,
        this.province,
        this.realName,
        this.town});

  Address.fromJson(Map<String, dynamic> json) {
    area = json['area'];
    city = json['city'];
    detailed = json['detailed'];
    id = json['id'];
    isDefault = json['isDefault'];
    phone = json['phone'];
    province = json['province'];
    realName = json['realName'];
    town = json['town'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = <String, dynamic>{};
    data['area'] = area;
    data['city'] = city;
    data['detailed'] = detailed;
    data['id'] = id;
    data['isDefault'] = isDefault;
    data['phone'] = phone;
    data['province'] = province;
    data['realName'] = realName;
    data['town'] = town;
    return data;
  }
}